import Vue from "vue";
import App from "./App.vue";
// import router from "./router";
import router from "./utils/routerGuard";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import qfSubMenu from "qf-sub-menu"; //引入我们的组件

//引入字体图标
import "./assets/icon/iconfont.css";
// import "./assets/icon/iconfont"

import "./router/generateRoutes";
import "./router/Tree";

// Vue.config.productionTip = false;

Vue.use(ElementUI);

//使用Vue.use()将组件注入到所有的子组件
Vue.use(qfSubMenu);

// Vue.prototype.$bus = bus

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
